package spring.cloud.canary.demo.configure;

import jk.framework.canary.core.po.SimpleVersionInfo;
import jk.framework.canary.core.po.VersionInfo;
import jk.framework.spring.cloud.canary.loadbalancer.api.AbstractLoadBalanceVersionInfoRepository;


/**
 * @author cuichao
 */
public class LocalVersionInfoRepository extends AbstractLoadBalanceVersionInfoRepository {

    @Override
    public void add(VersionInfo version) {

    }

    @Override
    public void publish(VersionInfo version) {

    }

    @Override
    public void completion(VersionInfo version) {

    }

    @Override
    public VersionInfo targetVersion(String routeKey) {
        SimpleVersionInfo info = new SimpleVersionInfo();
        info.setVersion("1.0.1");
        return info;
    }
}
